<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/9/8
 * Time: 16:23
 */

namespace util\validate\rules;

/**
 * 字符串长度最大值限定验证
 * Class LengthMax
 * @package util\validate\rules
 */
class LengthMax extends BaseRule
{

    public function verify()
    {
        return mb_strlen($this->value) <= $this->params;
    }
}